package com.situ.weibo.Controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

/**
 * Created by ThinkPad on 2016/12/19.
 */
@Controller
@RequestMapping("/")
public class MainController {
    @RequestMapping(value = "/", method = RequestMethod.GET)
    public String showIndex() {
        //返回的是View文件名

        return "index";
    }
}
